#ifndef _DEAL_FUNC_H
#define _DEAL_FUNC_H

#include "../apue.h"
#include "../ftp.h"

void tcp_send(struct execute_result ser_to_cli);

void tcp_rec(char buffer);

void login_func(struct login_data shm_memory,
		struct rec_to_manage rec_info_to_mamge);

void put_func(struct rec_to_manage rec_info_to_manage);

void get_func(struct rec_to_manage rec_info_to_manage);

void quit_func(struct login_data shm_memory,
	       struct rec_to_manage rec_info_to_manage);

void cd_func(struct rec_to_manage rec_info_to_manage);

void ls_func(struct rec_to_manage rec_info_to_manage);

void mkdir_func(struct rec_to_manage rec_info_to_manage);

void touch_func(struct rec_to_manage rec_info_to_manage);

void init_shm_mempry(struct login_data *shm_memory);
#endif
